<?php

function smarty_block_negate($params, $content, &$smarty){
    $USER = JFX::registry('JFX_User');
    
    if(isset($content)){ 
        if((float) preg_replace('/[^0-9\.\-]/', '', $content) < 0) return '<span class="negative">'.$content.'</span>';
        else return $content;
    }else{
        return;
    }
}
